package com.lzq.model.flyweight;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2022/11/24 14:58
 * @updateUser : modify
 * @updateTime : 2022/11/24 14:58
 * @updateRemark :
 */
public class Demo {
    public static void main(String[] args) {
        Integer i1 = 127;
        Integer i2 = 127;
        /**
         * 使用 == 来判断包装类型的地址
         * */
        System.out.println(i1 == i2);
        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3 == i4);
    }
}
